Skip to main content

lock menus

Type

command

Summary

Sets the lockMenus property to true, preventing the menu bar from being updated when the controls for the menu bar are changed.

Syntax

lock menus

Description

Use the lock menus command to hide changes in the menu bar from the user.

The lock menus command sets the lockMenus property to true.

When all pending handlers are finished executing, the lockMenus property is set back to false, undoing the lock menus command's action. Any changes made to the menus become visible to the user.

Examples

lock menus
if the lockScreen then lock menus

command: unlock menus, lock screen

function: menus

glossary: property, command, menu bar, control

property: lockMenus

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?